package com.lgl.scsapi.system.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用户类
 */

@NoArgsConstructor
@Data
@Accessors(chain = true)
public class SysUser implements Serializable {
	private Long userId;		//用户id
	private String userName;	//用户名
	private String userPassword; 	//密码
	private String nickName;		//姓名
	private String rights;		//权限
	private String roleId;		//角色id
	private String lastLoginDate;	//最后登录时间
	private String loginIP;			//用户登录ip地址
	private String status;		//状态
	private Role role;			//角色对象
	private String skin;		//皮肤

	public SysUser(String userName, String userPassword){
	    this.userName = userName;
	    this.userPassword = userPassword;
    }
}
